<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例-布局</title>
    <style>

        .dox {
            overflow: hidden;
            height: 450PX;
            display: flex;
            background-color: rgb(255, 255, 255);
        }

        .dox>div:nth-child(1) {
            flex: 1;
            background-color: rgb(63, 245, 251);
        }

        .dox>div:nth-child(2) {
            overflow: hidden;
            flex: 4;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            align-content: space-between;
        }

        .dox>div:nth-child(2)>div {
            height: 50%;
            /*想要一列分为n个就100%/n*/
            width: 25%;
            /*想要一行分为n个就100%/n*/
            box-sizing: border-box;
            border-bottom: 10px solid rgb(255, 255, 255);
            background-color: rgb(251, 255, 1);
            border-left: 10px solid rgb(255, 255, 255);
        }

        .dox>div:nth-child(2)>div:nth-child(n+5) {
            border-bottom: 0px solid green;

        }
    </style>
</head>

<body>
    <div class="dox">
        <div></div>
        <div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
</body>

</html>